package com.rulin.asp.sso.entity;

public class UserUtils {

	private static ThreadLocal<User> local = new ThreadLocal<User>();

	/**
	 * 赋值
	 * 
	 * @param session
	 */
	public static void set(User session) {
		local.set(session);
	}

	/**
	 * 取值
	 * 
	 * @return
	 */
	public static User getUser() {
		return local.get();
	}

	/**
	 * 移除
	 */
	public static void remove() {
		local.remove();
	}
}
